package com.bi.bitest.bao.entity.discoverrecommend;

/**
 * Created
 * Author:bi[FR]
 * Date:15-10-21
 */

import com.bi.bitest.bao.entity.AlbumBasic;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * "albumId": 344497,
 "coverLarge": "http://fdfs.xmcdn.com/group6/M02/35/45/wKgDhFTg4w_SDkc9AAT-fXngGBY184_mobile_large.jpg",
 "title": "黑先生在麦田咖啡馆",
 "tags": "民谣,80后,文艺",
 "tracks": 117,
 "playsCounts": 917714,
 "isFinished": 0,
 "trackId": 7898099,
 "trackTitle": "几米：音乐与绘本的美好邂逅"
 */
public class AlbumRecommend extends AlbumBasic {
    private long playsCounts;
    private int isFinished;
    private long trackId;
    private String trackTitle;

    public void parseJSON(JSONObject json) throws JSONException {
        super.parseJSON(json);
        if(json!=null){
            playsCounts=json.getLong("playsCounts");
            isFinished=json.getInt("isFinished");
            trackId=json.getLong("trackId");
            trackTitle=json.getString("trackTitle");

        }

    }

    public long getTrackId() {
        return trackId;
    }

    public void setTrackId(long trackId) {
        this.trackId = trackId;
    }

    public String getTrackTitle() {
        return trackTitle;
    }

    public void setTrackTitle(String trackTitle) {
        this.trackTitle = trackTitle;
    }
}
